package ${basePackage}.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import lombok.Data;

/**
 * @version: ${version}
 * @author: ${author}
 * @date: ${date?string("yyyy/MM/dd HH:mm")}
 * @description: ${tableInfo.tableSchema} -> ${tableInfo.tableName}(${tableInfo.tableComment})
 */
@Data
@TableName(value = "${tableName}")
public class ${domainName} implements Serializable {

    /**
     * ${tableName}
     */
    private static final long serialVersionUID = 1L;
<#list columnList as column>

    /**
     * ${column.columnComment}
     */
    <#if column.columnKey =="PRI">
    @TableId(value = "${column.columnName}", type = IdType.ASSIGN_ID)
    private ${column.javaType} ${column.javaColumnName};
    </#if>
    <#if  column.columnKey !="PRI">
        <#if column.javaColumnName =="createId">
    @TableField(fill = FieldFill.INSERT)
        <#elseif column.javaColumnName =="updateId">
    @TableField(fill = FieldFill.UPDATE)
        </#if>
    private ${column.javaType} ${column.javaColumnName};
    </#if>
</#list>

}
